package icu.shaoyayu.common.log;

/**
 * @author shaoyayu
 * @date 2022/2/10
 * @apiNote
 */

public class WebLoggingEvent extends LoggingEvent {

    /**
     * 操作的用户名
     */
    private String userName;

    /**
     * 操作的Ip地址
     */
    private String ip;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 请求的路径
     */
    private String uri;

    /**
     * 请求方法
     */
    private String mode;

    /**
     * 请求类的方法,注解提供
     */
    private String method;

    /**
     * 入参
     */
    private String parameter;

    /**
     * 响应
     */
    private String response;

    /**
     * 耗时
     */
    private long consume;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public long getConsume() {
        return consume;
    }

    public void setConsume(long consume) {
        this.consume = consume;
    }
}
